<?=$header?>

<body>

    <?=$js?>

	<?=$navigate?>

	<!-- MAIN CONTENT -->

	<div id="content">

		

		<div class="page-full-width cf">

            <?=$sidebarleft?>

            <div class="side-content fr">

			<div class="content-module">

			

				<div class="content-module-heading cf">

				

					<h3 class="fl">Full width page</h3>

					<span class="fr expand-collapse-text">Click to collapse</span>

					<span class="fr expand-collapse-text initial-expand">Click to expand</span>

				

				</div> <!-- end content-module-heading -->

				

				

				<div class="content-module-main">

                <?php

                    $typeMess =  $this->session->userdata('typeMess');

                    $message = $this->session->userdata('message');

                    if(!empty($message)){

                        if($typeMess == 'success'){

                            echo "<div class='information-box round'>$message </div>";

                        }else{

                            echo "<div class='error-box round'>$message </div>";

                        }

                        $this->session->unset_userdata('message');

                        $this->session->unset_userdata('typeMess');

                    }

                ?>

					<p><?php echo anchor('user/addUser', 'Add', array('class'=>'button round blue image-right ic-add text-upper')) ?></p> 

					<form name="formStaff">

                    <table>

						<thead>

							<tr>

								<th><input type="checkbox" id="table-select-all"></th>

								<th>Username</th>

								<th>Change Status</th>

                                <th>Action</th>

							</tr>

						</thead>

						<tfoot>

							<tr>

								<td colspan="5" class="table-footer">

									<label for="table-select-actions">With selected:</label>



									<select id="table-select-actions">

										<option value="option1">Delete</option>

										<option value="option2">Export</option>

										<option value="option3">Archive</option>

									</select>
									<a href="#" class="round button blue text-upper small-button">Apply to selected</a>	
								</td>

								

							</tr>

						

						</tfoot>

						

						<tbody>

                            <?php

                                foreach($list as $k=>$item):

                            ?>

							<tr>
								<td><input type="checkbox" value="<?=$item['iduser']?>" name="checklist[]" id="check_box" /></td>
								<td><?=$item['username']?></td>
								<td><?php if($item['active'] == 0): echo 'Inactive | '.anchor('user/changeStatus/'.$item['iduser'], 'Active'); else: echo 'Actived | '.anchor('user/changeStatus/'.$item['iduser'], 'Disable') ;endif; ?></td>
                                <td>
                                    <?=anchor($this->config->item('main_url').'/user/deleteUser/'.$item['iduser'], ' ', array('class'=>'table-actions-button ic-table-delete', 'onclick'=>"return confirm('Are you sure delete this user?')"));?>
                                </td>
							</tr>

                            <?php
                                endforeach;
                            ?>

						</tbody>

						

					</table>

					</form>

					<div class="stripe-separator"><!--  --></div>

					

					<p>When you resize the page, all the elements inside the page will resize as well, this being a liquid or fluid layout.</p>

					

				</div> <!-- end content-module-main -->

			

			</div> <!-- end content-module -->

		  </div>

		</div> <!-- end full-width -->

			

	</div> <!-- end content -->

	

	

	

	<!-- FOOTER -->

	<?=$footer?>

    <!-- end footer -->
</body>

</html>